﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs"
    Inherits="HiTeachers.Web.Default" Title="HiTeachers - Trang chủ" %>

<%@ Import Namespace="HiTeachers.Utilities" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphSearch" runat="server">
    <hiteacher:Search ID="htcSearch" runat="server" />
</asp:Content>
<asp:Content ID="cntMenu" ContentPlaceHolderID="cphMainMenu" runat="server">
    <hiteacher:MainMenu ID="mnuMain" ActivateId="Home" runat="server" />
</asp:Content>
<asp:Content ID="cntMain" ContentPlaceHolderID="cphMain" runat="server">
    <form id="dftForm" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="toolkitScriptMaster" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <asp:MultiView ID="mtvDefault" runat="server">
        <asp:View ID="vAnonymous" runat="server">
            <h3 class="line">
                <span>Nhu cầu của học viên</span></h3>
            <div class="galerie">
                <!--style="height: 260px;"-->
                <table class="list_request" width="100%" cellspacing="0" cellpadding="2" border="0">
                    <tr class="title_request">
                        <td>
                            Tiêu đề
                        </td>
                        <td style="width: 100px;">
                            Địa điểm
                        </td>
                        <td align="center" style="width: 50px;">
                            Tình trạng
                        </td>
                        <td style="width: 80px;">
                            Ngày đăng
                        </td>
                    </tr>
                    <asp:Repeater ID="rptStdRequest" runat="server">
                        <ItemTemplate>
                            <tr class="row1_list">
                                <td>
                                    <a href="<%# Eval("ID", "StudentRequestDetails.aspx?itid={0}") %>">
                                        <%# Eval("Title")%></a>
                                </td>
                                <td>
                                    <%# Eval("City")%>
                                </td>
                                <td align="center">
                                    <img src='<%# Eval("IsClosed", "images/close_{0}.png") %>' alt="" title='<%# (Convert.ToBoolean(Eval("IsClosed")))?"Tin ở trạng thái đóng!":"Tin ở trạng thái mở!" %>'
                                        border="0" />
                                </td>
                                <td>
                                    <%# Convert.ToDateTime(Eval("UpdatedDate")).ToString("dd/MM/yyyy") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                        <AlternatingItemTemplate>
                            <tr class="row2_list">
                                <td>
                                    <a href="<%# Eval("ID", "StudentRequestDetails.aspx?itid={0}") %>">
                                        <%# Eval("Title")%></a>
                                </td>
                                <td>
                                    <%# Eval("City")%>
                                </td>
                                <td align="center">
                                    <img src='<%# Eval("IsClosed", "images/close_{0}.png") %>' alt="" title='<%# (Convert.ToBoolean(Eval("IsClosed")))?"Tin ở trạng thái đóng!":"Tin ở trạng thái mở!" %>'
                                        border="0" />
                                </td>
                                <td>
                                    <%# Convert.ToDateTime(Eval("UpdatedDate")).ToString("dd/MM/yyyy") %>
                                </td>
                            </tr>
                        </AlternatingItemTemplate>
                    </asp:Repeater>
                </table>
            </div>
            <label class="lblViewAll" style="padding-top: 15px; padding-bottom: 20px;">
                <a href="ListStudentRequest.aspx">Xem tất cả</a>
            </label>
            <h3 class="line">
                <span>Giáo viên đăng ký mới</span></h3>
            <div class="galerie">
                <%--<marquee width="550" height="303" onmouseout="this.start()" onmouseover="this.stop()"
                    scrollamount="2" style="text-align: center">
                        <asp:Repeater ID="rptMember" runat="server">
                    <ItemTemplate>--%>
                <radRot:RadRotator ID="rtrMember" Width="557px" Height="305px" TransitionType="Scroll"
                    FramesToShow="3" UseSmoothScroll="true" ScrollDirection="Left" runat="server">
                    <FrameTemplate>
                        <div class="foto">
                            <div class="imgTeacherdiv">
                                <div align="center">
                                    <a href="<%# Eval("ID", "TeacherDetails.aspx?itid={0}") %>">
                                        <hiteacher:ResizedImage ID="imgFace" ImageUrl='<%# Eval("ImagePath") %>' MaxHeight="60"
                                            MaxWidth="60" runat="server" /></a></div>
                            </div>
                            <label class="name">
                                <%# Eval("Name") %></label><br />
                            <label>
                                <b>Nick:&nbsp;<%# Convert.ToString(Eval("Email")).Sub(4) + "..." %>&hellip;</b></label><br />
                            <div class="rating">
                                <b style="float: left;">Đánh giá:&nbsp;</b>
                                <ajaxToolkit:Rating ID="teacherRating" CssClass="divRating" CurrentRating='<%# Eval("Rate") %>'
                                    MaxRating="5" StarCssClass="ratingStar" WaitingStarCssClass="savedRatingStar"
                                    FilledStarCssClass="filledRatingStar" EmptyStarCssClass="emptyRatingStar" Direction="LeftToRight"
                                    RatingDirection="LeftToRightTopToBottom" runat="server">
                                </ajaxToolkit:Rating>
                            </div>
                            <br />
                            <div class="perex" title='<%# Eval("Intro") %>' style="white-space: normal;">
                                <%# Convert.ToString(Eval("Intro")).Sub(160)%>&hellip;</div>
                        </div>
                    </FrameTemplate>
                </radRot:RadRotator>
                <%--</ItemTemplate>
                </asp:Repeater>
                </marquee>--%>
                <div class="cleaner">
                    &nbsp;</div>
            </div>
            <label class="lblViewAll">
                <a href="ListTeacher.aspx">Xem tất cả</a>
            </label>
            <h3 class="line">
                <span id="tltWidget">Thông tin mới</span></h3>
            <div class="galerie">

                <script src="http://l.yimg.com/a/i/us/pps/listbadge_1.6.js">{"pipe_id":"8791c575d7ee517a51901042235c362c","_btype":"list","width":"550","height":"470"}</script>

            </div>
        </asp:View>
        <asp:View ID="vAuthen" runat="server">
            <table class="list_request" width="100%" cellspacing="0" cellpadding="2" border="0">
                <tr class="title_request">
                    <td>
                        Tiêu đề
                    </td>
                    <td style="width: 100px;">
                        Địa điểm
                    </td>
                    <td align="center" style="width: 50px;">
                        Tình trạng
                    </td>
                    <td style="width: 80px;">
                        Ngày đăng
                    </td>
                </tr>
                <asp:Repeater ID="rptAllStrReq" runat="server">
                    <ItemTemplate>
                        <tr class="row1_list">
                            <td>
                                <a href="<%# Eval("ID", "StudentRequestDetails.aspx?itid={0}") %>">
                                    <%# Eval("Title")%></a>
                            </td>
                            <td>
                                <%# Eval("City")%>
                            </td>
                            <td align="center">
                                <img src='<%# Eval("IsClosed", "images/close_{0}.png") %>' alt="" title='<%# (Convert.ToBoolean(Eval("IsClosed")))?"Tin ở trạng thái đóng!":"Tin ở trạng thái mở!" %>'
                                    border="0" />
                            </td>
                            <td>
                                <%# Convert.ToDateTime(Eval("UpdatedDate")).ToString("dd/MM/yyyy") %>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="row2_list">
                            <td>
                                <a href="<%# Eval("ID", "StudentRequestDetails.aspx?itid={0}") %>">
                                    <%# Eval("Title")%></a>
                            </td>
                            <td>
                                <%# Eval("City")%>
                            </td>
                            <td align="center">
                                <img src='<%# Eval("IsClosed", "images/close_{0}.png") %>' alt="" title='<%# (Convert.ToBoolean(Eval("IsClosed")))?"Tin ở trạng thái đóng!":"Tin ở trạng thái mở!" %>'
                                    border="0" />
                            </td>
                            <td>
                                <%# Convert.ToDateTime(Eval("UpdatedDate")).ToString("dd/MM/yyyy") %>
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                </asp:Repeater>
            </table>
            <div class="pager">
                <asp:Literal ID="ltrPaper" runat="server"></asp:Literal>
            </div>
        </asp:View>
    </asp:MultiView>
    </form>
</asp:Content>
